﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - Coway</title>
    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    @*<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">*@
    <link rel="stylesheet" href="~/css/site.css" />

</head>
<body>
    <header>
        <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
            <div class="container" style="margin-top:10px;">
                <a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index" style="margin-top: -5px;"><img src="/images/newlogo.png"></a>
                <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
                    <ul class="nav nav-pills">
                        <li class="active" data-target="0"><a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">销售填写</a></li>
                        <li data-target="1"><a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Pay">客户填写</a></li>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
    <div class="container">
        <div class="panel panel-info">
        </div>
        <main role="main" class="pb-3">
            @RenderBody()
        </main>
    </div>

    <footer class="border-top footer text-muted">
        <div class="container">
            &copy; Coway USA © 2020 Coway USA, Inc. All Rights Reserved.
        </div>
    </footer>
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>
    <script>
        @{
            string controller = ViewContext.RouteData.Values["controller"].ToString();

        }
        $(function () {
            var controllerName = '@controller';
            $(".nav li").click(function () {
                var currnav = localStorage.setItem("nav", $(this).index());
                //$(".nav li").removeClass("active");

            })
            $(".nav li").removeClass("active");
            switch (controllerName) {
                case "Home":
                    $("li[data-target='0']").addClass("active");
                        break
                case "Install":
                    $("li[data-target='1']").addClass("active");
                        break
                case "Docker":
                    $("li[data-target='2']").addClass("active");
                        break
                    default:
                }

            $(".extend").click(function () {
                $(".panel-info").hide(1000);
            })
        })
    </script>
    @RenderSection("Scripts", required: false)
</body>
</html>
